package com.ld.entity;

/**
 * @Description: 分页，排序，实体类
 * @Author: ld
 * @Date: 2021-02-02 17:03
 */
public class PageEntity<T> {
    /**
     * 页数
     */
    private Integer pageNum = 1;
    /**
     * 分页大小
     */
    private Integer pageSize = 20;
    /**
     * 排序字段
     */
    private String orderBy;
    /**
     * 排序，asc正序 desc倒序
     */
    private String sortBy;
    /**
     * 最大
     */
    private Long totalSize;
    /**
     * 实体数据
     */
    private T data;
    public String getSortBy() {
        return sortBy;
    }

    public void setSortBy(String sortBy) {
        this.sortBy = sortBy;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public Long getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(Long totalSize) {
        this.totalSize = totalSize;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
